#ifndef __STM32_FLUSH_H__
#define __STM32_FLUSH_H__

#include "stm32f10x.h"
#include "freertos.h"
#include "task.h"

#include <string.h>
#include <stdio.h>

#include "Project_Config.h"
#include "USART_Config.h"

void erasePage(uint32_t addr);
void changeFlashFor32(uint32_t addr, uint32_t data);
void changeFlashFor16(uint32_t addr, uint16_t data);
void readFlash(uint32_t addr, char *buffer, int len);
void Read_Flash_Code(void);

extern char usrname[16];
extern char passwd[16];

#endif
